<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix= "fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>현대엘리베이터 / 소송기록표</title>
<link rel="stylesheet" type="text/css" href="/css/common.css"/>
<script type="text/javascript" language="javascript" src="/js/common.js"></script>
</head>

<!-- <body onload="FnPrint();"> -->
<body>
<div class="chart">
    <h3><img src="/images/work/litigation_tit.gif" width="850" height="77" alt="소송 기록표" /></h3>
    <!-- <p class="print"><a href="#" onclick="FnPrint();"><img src="/images/common/btn_print.gif" width="50" height="19" alt="인쇄" /></a></p> -->
    <p class="print"><a href="/admin/Printing3.hcom?case_seq=${case_seq}&mem_dept=${mem_dept}&court_step=3"><img src="/images/common/btn_print.gif" width="50" height="19" alt="인쇄" /></a></p>
    <p>
            <table cellspacing="0" cellpadding="0" summary="소송진행현황 목록" class="row_table_blue">
              <caption>           소송진행현황 목록           </caption>
              <colgroup>
                <col width="15%">
                <col width="45%" >
                <col width="15%">
                <col width="*">
              </colgroup>
              <tbody>
                <tr>
                  <th scope="row">사건명</th>
                  <td class="tit">${boardView.case_name}</td>
                  <th scope="row">프로젝트</th>
                  <td >${boardView.order_no }</td>
                </tr>
                <tr>
                  <th scope="row">부서명</th>
                  <td>${boardView.mem_dept}</td>
                  <th scope="row">소가</th>
                  <td>${boardView.sue_money}</td>
                </tr>
                <tr>
                  <th scope="row">원고</th>
                  <td>${boardView.plaintiff}</td>
                  <th scope="row">피고</th>
                  <td>${boardView.defendant}</td>
                </tr>
                <tr>
                  <th scope="row">제(피)소</th>
                  <td class="table_txt_left" >
							<s:if test="%{boardView.sue_flag == 1}">제소</s:if>
 							<s:else>피소</s:else>
				  </td> 
                  <th scope="row">상태</th>
                  <td class="table_txt_left" >
							<c:if test="${boardView.status_flag == 'P' }"><img src="/images/admin/icon_ing.gif" alt="진행" width="49" height="16"/></c:if>
							<c:if test="${boardView.status_flag == 'D' }"><img src="/images/common/btn_7.gif" alt="완료"/></c:if>
				  </td> 
                </tr>
                <tr>
                  <th scope="row">기타</th>
                  <td colspan="3">${boardView.etc }</td>
                </tr>
                <tr>
                  <th scope="row">사건 개요</th>
                  <td colspan="3">${boardView.summary }</td>
                </tr>
              </tbody>
            </table>
    </p>
  	 <h4><img src="/images/common/icon_chack_2.gif" width="15" height="15" alt="" /> 제 1 심</h4>
    <p>
            <table cellspacing="0" cellpadding="0" summary="소송진행현황 상세내용" class="row_table">
              <caption>소송진행현황 상세내용</caption>
              <colgroup>
                <col width="15%">
                <col width="35%" >
                <col width="15%">
                <col width="*">
              </colgroup>
              <tbody>
                <tr>
                  <th scope="row">사건번호</th>
                  <td>${printView1.case_no}</td>
                  <th scope="row">제(피)소일</th>
                  <td>${fn:substring(printView1.case_date,0,4)}-${fn:substring(printView1.case_date,4,6)}-${fn:substring(printView1.case_date,6,8)}</td>
                </tr>
                <tr>
                  <th scope="row">관할법원</th>
                  <td>${printView1.court_name}</td>
                  <th scope="row">재판부</th>
                  <td>${printView1.court_dept}</td>
                </tr>
                <tr>
                  <th scope="row">주심</th>
                  <td>${printView1.head_referee}</td>
                  <th scope="row">종국결과</th>
                  <td>${printView1.final_status}</td>
                </tr>
                <tr>
                  <th scope="row">원고 대리인</th>
                  <td>${printView1.plaintiff_agent}</td>
                  <th scope="row">피고 대리인</th>
                  <td>${printView1.defendant_agent}</td>
                </tr>
              </tbody>
            </table>
             <dd class="height20"></dd>
            <table cellspacing="0" cellpadding="0" summary="소송진행현황 주요내용" class="row_table">
              <caption>소송진행현황 주요내용</caption>
              <colgroup>
                <col width="15%">
                <col width="*" >
                <%-- <col width="13%"> --%>
                <col width="20%">
              </colgroup>
              <thead>
                <tr>
                  <th scope="col">일자</th>
                  <th scope="col">주요내용</th>
                  <!-- <th scope="col">파일</th> -->
                  <th scope="col">비고</th>
                </tr>
             </thead>
              <tbody>
           <s:if test="%{1 > list.size()}">
                    	<tr>
                    		<td colspan="3" style="text-align:center;">게시물이 없습니다.</td>
                    	<tr>
                    	</s:if>
                    	<s:iterator value="list" status="i">
						<tr>
							<td>${fn:substring(log_date,0,4)}-${fn:substring(log_date,4,6)}-${fn:substring(log_date,6,8)}</td>
							<td>${log_content}</td>
		           			<td>${log_note}</td>	
							<!-- <td>
							수정|삭제
							</td> -->
						</tr>
						</s:iterator>
                    </tbody>
            </table>
    </p>
   	<h4><img src="/images/common/icon_chack_2.gif" width="15" height="15" alt="" /> 제 2 심</h4>
    <p>
            <table cellspacing="0" cellpadding="0" summary="소송진행현황 상세내용" class="row_table">
              <caption>소송진행현황 상세내용</caption>
              <colgroup>
                <col width="15%">
                <col width="35%" >
                <col width="15%">
                <col width="*">
              </colgroup>
              <tbody>
                <tr>
                  <th scope="row">사건번호</th>
                  <td>${printView2.case_no}</td>
                  <th scope="row">제(피)소일</th>
                  <td>${fn:substring(printView2.case_date,0,4)}-${fn:substring(printView2.case_date,4,6)}-${fn:substring(printView2.case_date,6,8)}</td>
                </tr>
                <tr>
                  <th scope="row">관할법원</th>
                  <td>${printView2.court_name}</td>
                  <th scope="row">재판부</th>
                  <td>${printView2.court_dept}</td>
                </tr>
                <tr>
                  <th scope="row">주심</th>
                  <td>${printView2.head_referee}</td>
                  <th scope="row">종국결과</th>
                  <td>${printView2.final_status}</td>
                </tr>
                <tr>
                  <th scope="row">원고 대리인</th>
                  <td>${printView2.plaintiff_agent}</td>
                  <th scope="row">피고 대리인</th>
                  <td>${printView2.defendant_agent}</td>
                </tr>
              </tbody>
            </table>
             <dd class="height20"></dd>
            <table cellspacing="0" cellpadding="0" summary="소송진행현황 주요내용" class="row_table">
              <caption>소송진행현황 주요내용</caption>
              <colgroup>
                <col width="15%">
                <col width="*" >
                <%-- <col width="13%"> --%>
                <col width="20%">
              </colgroup>
              <thead>
                <tr>
                  <th scope="col">일자</th>
                  <th scope="col">주요내용</th>
                  <!-- <th scope="col">파일</th> -->
                  <th scope="col">비고</th>
                </tr>
             </thead>
              <tbody>
           <s:if test="%{1 > printlist2.size()}">
                    	<tr>
                    		<td colspan="3" style="text-align:center;">게시물이 없습니다.</td>
                    	</tr>
                    	</s:if>
                    	<s:iterator value="printlist2" status="i">
						<tr>
							<td>${fn:substring(log_date,0,4)}-${fn:substring(log_date,4,6)}-${fn:substring(log_date,6,8)}</td>
							<td>${log_content }</td>
		           			<td>${log_note }</td>	
							<!-- <td>
							수정|삭제
							</td> -->
						</tr>
						</s:iterator>
                    </tbody>
            </table>
    </p><h4><img src="/images/common/icon_chack_2.gif" width="15" height="15" alt="" /> 대 법 원</h4>
    <p>
            <table cellspacing="0" cellpadding="0" summary="소송진행현황 상세내용" class="row_table">
              <caption>소송진행현황 상세내용</caption>
              <colgroup>
                <col width="15%">
                <col width="35%" >
                <col width="15%">
                <col width="*">
              </colgroup>
              <tbody>
                <tr>
                  <th scope="row">사건번호</th>
                  <td>${printView3.case_no}</td>
                  <th scope="row">제(피)소일</th>
                  <td>${fn:substring(printView3.case_date,0,4)}-${fn:substring(printView3.case_date,4,6)}-${fn:substring(printView3.case_date,6,8)}</td>
                </tr>
                <tr>
                  <th scope="row">관할법원</th>
                  <td>${printView3.court_name}</td>
                  <th scope="row">재판부</th>
                  <td>${printView3.court_dept}</td>
                </tr>
                <tr>
                  <th scope="row">주심</th>
                  <td>${printView3.head_referee}</td>
                  <th scope="row">종국결과</th>
                  <td>${printView3.final_status}</td>
                </tr>
                <tr>
                  <th scope="row">원고 대리인</th>
                  <td>${printView3.plaintiff_agent}</td>
                  <th scope="row">피고 대리인</th>
                  <td>${printView3.defendant_agent}</td>
                </tr>
              </tbody>
            </table>
             <dd class="height20"></dd>
            <table cellspacing="0" cellpadding="0" summary="소송진행현황 주요내용" class="row_table">
              <caption>소송진행현황 주요내용</caption>
              <colgroup>
                <col width="15%">
                <col width="*" >
                <%-- <col width="13%"> --%>
                <col width="20%">
              </colgroup>
              <thead>
                <tr>
                  <th scope="col">일자</th>
                  <th scope="col">주요내용</th>
                  <!-- <th scope="col">파일</th> -->
                  <th scope="col">비고</th>
                </tr>
             </thead>
              <tbody>
           <s:if test="%{1 > printlist3.size()}">
                    	<tr>
                    		<td colspan="3" style="text-align:center;">게시물이 없습니다.</td>
                    	</tr>
                    	</s:if>
                    	<s:iterator value="printlist3" status="i">
						<tr>
							<td>${fn:substring(log_date,0,4)}-${fn:substring(log_date,4,6)}-${fn:substring(log_date,6,8)}</td>
							<td>${log_content }</td>
		           			<td>${log_note }</td>	
							<!-- <td>
							수정|삭제
							</td> -->
						</tr>
						</s:iterator>
                    </tbody>
            </table>
    </p>
</div>
<script language="javascript">
 
  function FnPrint() {

        window.print();
        self.close();
    }
</script>
</body>
</html>
